package com.example.demo.finitestatemachine.state;

import com.example.demo.finitestatemachine.IEnum;

/**
 * @author liyuncong
 * @version 1.0
 * @file LiftStatus
 * @brief LiftStatus
 * @details LiftStatus
 * @date 2022-12-27
 *
 * Edit History
 * ----------------------------------------------------------------------------
 * DATE                        NAME               DESCRIPTION
 * 2022-12-27                  liyuncong          Created
 */
public enum LiftStateCodeEnums implements IEnum {

    OPEN(1, "open"),
    CLOSE(2, "close"),
    RUN(3, "run"),
    STOP(4, "stop");

    private final Integer code;

    private final String name;

    LiftStateCodeEnums(Integer code, String name) {
        this.code = code;
        this.name = name;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getName() {
        return name;
    }
}
